home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17902 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: howland.reston.ans.net!swrinde!gatech!usceast!sridhar
  2. From: sridhar@cs.sc.edu (M. A. Sridhar)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: publicly avail class for X11?
  5. Date: 17 Apr 1996 13:35:32 GMT
  6. Organization: University of South Carolina - Columbia - Computer Science
  7. Message-ID: <4l2s34$95k@redwood.cs.sc.edu>
  8. References: <317284B4.519A@dal.ca>
  9. NNTP-Posting-Host: poplar.cs.sc.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. Dan Kelley <d.kelley@dal.ca> writes:
  13.  
  14. >Hi folks.  Is there a freely available class designed to let me draw on an X11
  15. >display without going through dozens of low-level commands?
  16.  
  17. >Ideally it would have capabilities like:
  18. >   Screen s;
  19. >   s.initialize();         // actually create the window
  20. >   s.draw("hello world", 10, 10); // draw text indicated location
  21. >   s.draw(10, 10, 100, 100);       // draw diagonal line
  22. >and so forth, with optional things like
  23. >   s.window_name("foo bar");    // optional, defaults to ""
  24. >   s.size(500, 500);        // optional, defaults to 300x300
  25. >   s.select_font(Helvetica);      // select named font
  26. >and so forth, along with various callback registry routines.
  27.  
  28. >For folks like me (a scientist, not a programmer) who only occasionally use X11, this
  29. >would be a useful class to have available.
  30.  
  31. >Since this seems relatively straightforward for X11 geniuses, I'm wondering whether
  32. >it exists already.  I imagine another advantage would be that it could isolate code
  33. >for X11 and other platforms, so that scientists like me could easily create crude
  34. >interfaces if only for output) on various platforms.
  35.  
  36. Check out YACL. You can get information about it from the URL
  37. http://www.cs.sc.edu/~sridhar/yacl.html, and you can get it by anonymous ftp
  38. from ftp.cs.sc.edu in the directory pub/yacl.
  39.  
  40. Sridhar
  41. >Thanks in advance to any who have advice.
  42.  
  43. >-- 
  44. >Dan E. Kelley                   internet:         mailto:Dan.Kelley@Dal.CA
  45. >Oceanography Department         phone:                       (902)494-1694
  46. >Dalhousie University            fax:                         (902)494-2885
  47. >Halifax, NS, CANADA, B3H 4J1    WWW:  http://www.phys.ocean.dal.ca/~kelley
  48. -- 
  49. M. A. Sridhar                  | sridhar@usceast.cs.sc.edu (Internet)
  50. Department of Computer Science | http://www.cs.sc.edu/~sridhar/
  51. University of South Carolina   | (803) 777-3767 (Fax)
  52. Columbia, SC 29208             | (803) 777-2427 (Ma Bell)
  53. --
  54. M. A. Sridhar                  | sridhar@usceast.cs.sc.edu (Internet)
  55. Department of Computer Science | http://www.cs.sc.edu/~sridhar/
  56. University of South Carolina   | (803) 777-3767 (Fax)
  57. Columbia, SC 29208             | (803) 777-2427 (Ma Bell)
  58.